import root from '../App'
import top from '../components/top'
import society from '../components/society'
import international from '../components/international'
import sports from '../components/sports'
import recreation from '../components/recreation'
import joke from '../components/joke'
import finance from '../components/finance'
import science from '../components/science'
import military from '../components/military'
import automobile from '../components/autombile'
import game from '../components/game'
import fashion from '../components/fashion'
import inland from '../components/inland'
import recommend from '../components/recommend'
import set from '../page/set'

const routes = [
  {
    path: '/',
    name: 'root',
    component: root,
    children: [
      {
        path: 'top',
        name: 'top',
        component: top,
        meta: {keepAlive: true}
      },
      {
        path: 'society',
        name: 'society',
        component: society,
        meta: {keepAlive: true}
      },
      {
        path: 'international',
        name: 'international',
        component: international,
        meta: {keepAlive: true}
      },
      {
        path: 'sports',
        name: 'sports',
        component: sports,
        meta: {keepAlive: true}
      },
      {
        path: 'recreation',
        name: 'recreation',
        component: recreation,
        meta: {keepAlive: true}
      },
      {
        path: 'joke',
        name: 'joke',
        component: joke,
        meta: {keepAlive: true}
      },
      {
        path: 'finance',
        name: 'finance',
        component: finance,
        meta: {keepAlive: true}
      },
      {
        path: 'science',
        name: 'science',
        component: science,
        meta: {keepAlive: true}
      },
      {
        path: 'military',
        name: 'military',
        component: military,
        meta: {keepAlive: true}
      },
      {
        path: 'automobile',
        name: 'automobile',
        component: automobile,
        meta: {keepAlive: true}
      },
      {
        path: 'game',
        name: 'game',
        component: game,
        meta: {keepAlive: true}
      },
      {
        path: 'fashion',
        name: 'fashion',
        component: fashion,
        meta: {keepAlive: true}
      },
      {
        path: 'inland',
        name: 'inland',
        component: inland,
        meta: {keepAlive: true}
      },
      {
        path: 'video',
        name: 'video',
        component: recommend,
        meta: {keepAlive: true}
      },
      {
        path: 'set',
        name: 'set',
        component: set,
        meta: {keepAlive: true}
      }
    ]
  }
]

export default routes
